<%@ include file="/html/common/init.jsp" %>

<c:choose>
	<c:when test="<%= com.video.portlet.Constants.YOUTUBE.equalsIgnoreCase(videoFrom) %>">
			<jsp:include page='/html/youtube/configuration.jsp' flush="true" />	
	</c:when>
	<c:when test="<%= com.video.portlet.Constants.DAILYMOTION.equalsIgnoreCase(videoFrom) %>">
			<jsp:include page='/html/dailymotion/configuration.jsp' flush="true" />	
	</c:when>
	<c:when test="<%= com.video.portlet.Constants.SEVENLOAD.equalsIgnoreCase(videoFrom) %>">
			<jsp:include page='/html/sevenload/configuration.jsp' flush="true" />	
	</c:when>		
	<c:when test="<%= com.video.portlet.Constants.VIMEO.equalsIgnoreCase(videoFrom) %>">
			<jsp:include page='/html/vimeo/configuration.jsp' flush="true" />	
	</c:when>	
	<c:when test="<%= com.video.portlet.Constants.REVVER.equalsIgnoreCase(videoFrom) %>">
		<jsp:include page='/html/revver/configuration.jsp' flush="true" />
	</c:when>
	<c:when test="<%= com.video.portlet.Constants.FUNNYORDIE.equalsIgnoreCase(videoFrom) %>">
		<jsp:include page='/html/funnyordie/configuration.jsp' flush="true" />
	</c:when>	
	<c:otherwise>
		<liferay-portlet:actionURL portletConfiguration="true" var="configurationURL" />

		<aui:form action="<%= configurationURL %>" method="post">
			<aui:input name="<%= Constants.CMD %>" type="hidden" value="<%= Constants.UPDATE %>" />
			
				<div class="aui-field-row">
					<aui:select label="videoFrom" name="videoFrom" inlineField="true" onChange="this.form.submit();">
						<aui:option label="select.." value="" />
						<aui:option label="youtube" selected='<%= com.video.portlet.Constants.YOUTUBE.equalsIgnoreCase(videoFrom) %>' value="youtube" />	
						<aui:option label="vimeo" selected='<%= com.video.portlet.Constants.VIMEO.equalsIgnoreCase(videoFrom) %>' value="vimeo" />
						<aui:option label="dailymotion" selected='<%= com.video.portlet.Constants.DAILYMOTION.equalsIgnoreCase(videoFrom) %>' value="dailymotion" />		
						<aui:option label="sevenload" selected='<%= com.video.portlet.Constants.SEVENLOAD.equalsIgnoreCase(videoFrom) %>' value="sevenload" />	
						<aui:option label="revver" selected='<%= com.video.portlet.Constants.REVVER.equalsIgnoreCase(videoFrom) %>' value="revver" />		
					</aui:select>				
				</div>
					
		</aui:form>
	</c:otherwise>
</c:choose>